package com.xugou.service.Impl;

import com.xugou.dao.CostDao;
import com.xugou.pojo.Cost;
import com.xugou.service.CostService;

/**
 * @author xugou
 * @date 2022/6/13  21:37
 */
public class CostServiceImpl implements CostService {

    private CostDao costDao;

    public void setCostDao(CostDao costDao) {
        this.costDao = costDao;
    }

    public Cost getCostByOrderId(int id) {

        Cost cost = costDao.getCostByOrderId(id);
        return cost;
    }

    public int updateOrderCost(Cost cost) {
        int i = costDao.updateOrderCost(cost);
        return i;
    }

    public int bindCostOfOrder(Cost cost) {
        int i = costDao.bindCostOfOrder(cost);
        return i;
    }

    public int deleteCost(int id) {
        int i = costDao.deleteCost(id);
        return i;
    }
}
